package com.ruoyi.report.forms.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.report.forms.mapper.CngScadaRealtimeMonitoringHourMapper;
import com.ruoyi.report.forms.domain.CngScadaRealtimeMonitoringHour;
import com.ruoyi.report.forms.service.ICngScadaRealtimeMonitoringHourService;

/**
 * 实时监测数据 SCADA实时监测数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-29
 */
@Service
public class CngScadaRealtimeMonitoringHourServiceImpl implements ICngScadaRealtimeMonitoringHourService 
{
    @Autowired
    private CngScadaRealtimeMonitoringHourMapper cngScadaRealtimeMonitoringHourMapper;

    /**
     * 查询实时监测数据 SCADA实时监测数据
     * 
     * @param monitoringId 实时监测数据 SCADA实时监测数据主键
     * @return 实时监测数据 SCADA实时监测数据
     */
    @Override
    public CngScadaRealtimeMonitoringHour selectCngScadaRealtimeMonitoringHourByMonitoringId(String monitoringId)
    {
        return cngScadaRealtimeMonitoringHourMapper.selectCngScadaRealtimeMonitoringHourByMonitoringId(monitoringId);
    }

    /**
     * 查询实时监测数据 SCADA实时监测数据列表
     * 
     * @param cngScadaRealtimeMonitoringHour 实时监测数据 SCADA实时监测数据
     * @return 实时监测数据 SCADA实时监测数据
     */
    @Override
    public List<CngScadaRealtimeMonitoringHour> selectCngScadaRealtimeMonitoringHourList(CngScadaRealtimeMonitoringHour cngScadaRealtimeMonitoringHour)
    {
        return cngScadaRealtimeMonitoringHourMapper.selectCngScadaRealtimeMonitoringHourList(cngScadaRealtimeMonitoringHour);
    }

    @Override
    public List<CngScadaRealtimeMonitoringHour> selectCngScadaRealtimeMonitoringMonthList(CngScadaRealtimeMonitoringHour cngScadaRealtimeMonitoringHour)
    {
        return cngScadaRealtimeMonitoringHourMapper.selectCngScadaRealtimeMonitoringMonthList(cngScadaRealtimeMonitoringHour);
    }

    public List<CngScadaRealtimeMonitoringHour> selectCngScadaRealtimeMonitoringHourCustomList(CngScadaRealtimeMonitoringHour cngScadaRealtimeMonitoringHour)
    {
        return cngScadaRealtimeMonitoringHourMapper.selectCngScadaRealtimeMonitoringHourCustomList(cngScadaRealtimeMonitoringHour);
    }

    public List<CngScadaRealtimeMonitoringHour> selectCngScadaRealtimeMonitoringMonthCustomList(CngScadaRealtimeMonitoringHour cngScadaRealtimeMonitoringHour)
    {
        return cngScadaRealtimeMonitoringHourMapper.selectCngScadaRealtimeMonitoringMonthCustomList(cngScadaRealtimeMonitoringHour);
    }

    /**
     * 新增实时监测数据 SCADA实时监测数据
     * 
     * @param cngScadaRealtimeMonitoringHour 实时监测数据 SCADA实时监测数据
     * @return 结果
     */
    @Override
    public int insertCngScadaRealtimeMonitoringHour(CngScadaRealtimeMonitoringHour cngScadaRealtimeMonitoringHour)
    {
        return cngScadaRealtimeMonitoringHourMapper.insertCngScadaRealtimeMonitoringHour(cngScadaRealtimeMonitoringHour);
    }

    /**
     * 修改实时监测数据 SCADA实时监测数据
     * 
     * @param cngScadaRealtimeMonitoringHour 实时监测数据 SCADA实时监测数据
     * @return 结果
     */
    @Override
    public int updateCngScadaRealtimeMonitoringHour(CngScadaRealtimeMonitoringHour cngScadaRealtimeMonitoringHour)
    {
        cngScadaRealtimeMonitoringHour.setUpdateTime(DateUtils.getNowDate());
        return cngScadaRealtimeMonitoringHourMapper.updateCngScadaRealtimeMonitoringHour(cngScadaRealtimeMonitoringHour);
    }

    @Override
    public int updateCngScadaRealtimeMonitoringCustomHour(CngScadaRealtimeMonitoringHour cngScadaRealtimeMonitoringHour)
    {
        cngScadaRealtimeMonitoringHour.setUpdateTime(DateUtils.getNowDate());
        return cngScadaRealtimeMonitoringHourMapper.updateCngScadaRealtimeMonitoringCustomHour(cngScadaRealtimeMonitoringHour);
    }

    /**
     * 批量删除实时监测数据 SCADA实时监测数据
     * 
     * @param monitoringIds 需要删除的实时监测数据 SCADA实时监测数据主键
     * @return 结果
     */
    @Override
    public int deleteCngScadaRealtimeMonitoringHourByMonitoringIds(String[] monitoringIds)
    {
        return cngScadaRealtimeMonitoringHourMapper.deleteCngScadaRealtimeMonitoringHourByMonitoringIds(monitoringIds);
    }

    /**
     * 删除实时监测数据 SCADA实时监测数据信息
     * 
     * @param monitoringId 实时监测数据 SCADA实时监测数据主键
     * @return 结果
     */
    @Override
    public int deleteCngScadaRealtimeMonitoringHourByMonitoringId(String monitoringId)
    {
        return cngScadaRealtimeMonitoringHourMapper.deleteCngScadaRealtimeMonitoringHourByMonitoringId(monitoringId);
    }
}
